package cn.wolfcode.edu.service;

import cn.wolfcode.edu.domain.Classroom;
import cn.wolfcode.edu.query.QueryObject;
import cn.wolfcode.edu.util.PageResult;

import java.util.List;

/**
 * Created by ASUS on 2018/7/8.
 */
public interface IClassroomService {
    /**
     * 查询教室列表
     * @param qo 分页参数
     * @return
     */
    PageResult query(QueryObject qo);

    /**
     * 保存教室
     * @param classroom 要保存的教室对象
     */
    void insertClassroom(Classroom classroom);

    void updateClassroom(Classroom classroom);

    /**
     * 查询所有教室
     * @return
     */
    List<Classroom> selectAllClassroom();

    Classroom getByName(String name);

    List<Classroom> listAllClassroomExStatus();

    void enableClassroom(Long id, Long statusNum);
}
